use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct HomeListApp {
    #[serde(rename = "Name")]
    pub name: String,
    #[serde(rename = "Pkgname")]
    pub pkgname: String,
    #[serde(rename = "Category")]
    pub category: String,
    #[serde(rename = "More")]
    pub more: String,
    #[serde(rename = "Icon")]
    pub icon: Option<String>,
}

#[derive(Serialize, Deserialize, Clone)]
pub struct HomeLink {
    pub name: String,
    pub more: String,
    #[serde(rename = "imgUrl")]
    pub img_url: String,
    #[serde(rename = "type")]
    pub link_type: String,
    pub url: String,
}

#[derive(Serialize, Deserialize, Clone)]
pub struct HomeList {
    pub name: String,
    #[serde(rename = "type")]
    pub list_type: String,
    #[serde(rename = "jsonUrl")]
    pub json_url: String,
}
